<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class CommonUtils {
	
	public static function encryptPassword($str) {
		return sha1(md5($str));
	}	
	
	public static function getCurrentTime(){
		$start=microtime(); 
		$start=explode(" ",$start); 
		$start=$start[1]+$start[0];
		return $start;
	}
	
	public static function number_format($number, $digit=3){
		$round = round($number, $digit);
		
		return number_format($round, $digit, '.', '');
	}
}

